#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void swap(int*, int*);
int main()
{
	int a = 10;
	int b = 20;
	int* p1 = &a;
	int* p2 = &b;
	swap(&p1, &p2);
	printf("%p %p\n", &a, p2);
	printf("%p %p\n", &b, p1);
	return 0;

}
void swap(int* a, int* b)
{
	*a = *a ^ *b;
	*b = *a ^ *b;
	*a = *a ^ *b;
}